package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 * 产品初始库存
 * @TableName yd_material_initial_stock
 */
@TableName(value ="yd_material_initial_stock")
@Data
public class YdMaterialInitialStock implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 产品id
     */
    @TableField(value = "material_id")
    private Long materialId;

    /**
     * 仓库id
     */
    @TableField(value = "depot_id")
    private Long depotId;

    /**
     * 初始库存数量
     */
    @TableField(value = "number")
    private BigDecimal number;

    /**
     * 最低库存数量
     */
    @TableField(value = "low_safe_stock")
    private BigDecimal lowSafeStock;

    /**
     * 最高库存数量
     */
    @TableField(value = "high_safe_stock")
    private BigDecimal highSafeStock;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 删除标记，0未删除，1删除
     */
    @TableField(value = "delete_flag")
    private String deleteFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}